Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

fix anchors rule not correctly apply 4 chars rule #305

Merged
merged 1 commit into from
Oct 25, 2016

Conversation

ipip2005
Copy link
Collaborator

@ipip2005 ipip2005 commented Oct 24, 2016

  • only apply rule 'text must longer than 4 characters' to role='link' or
    anchor with href attribute defined.
  • Only <a role=link'></a> and <a href='...'></a> should have text longer
    than 4 characters.
  • Other links like <a role='button'><span>add</span></a> or
    <a><img /></a> don't have this limitation.
  • closes update rule: react-a11y-anchors - Do not check if role='button' #295

 - only apply rule 'text must longer than 4 characters' to role='link' or
   anchor with href attribute defined.
 - Only <a role=link'></a> and <a href='...'></a> should have text longer
   than 4 characters.
 - Other links like <a role='button'><span>add</span></a> or
   <a><img /></a> don't have this limitation.
@ipip2005 ipip2005 merged commit bb0cf61 into master Oct 25, 2016
@ipip2005 ipip2005 deleted the liaye/remove-react-a11y-anchors-4-characters-rule branch October 25, 2016 04:52
@HamletDRC HamletDRC modified the milestone: 2.0.14 Oct 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update rule: react-a11y-anchors - Do not check if role='button'
3 participants